package com.trmp.sys.menuMng.dao;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import com.trmp.commons.dao.GenericRepository;
import com.trmp.sys.menuMng.entity.MenuShowIndexInfo;

public interface MenuShowIndexInfoDao extends
GenericRepository<MenuShowIndexInfo, Long>
{
	@Modifying
	@Query(value = "delete T_SYS_MENUSHOWINDEX where ROLEINFO_ROLEID = ?1",nativeQuery=true)
	public void deleteByRoleId(Long roleId);
}
